<!DOCTYPE html>
      <html>
      <head>
      <title>留言板</title>
      <meta charset="utf-8" />
      <style>@charset "UTF-8";
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
  margin: 0;
  padding: 0;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 6px;
}

/* 外层轨道 */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset006pxrgba(255, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.1);
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(0, 0, 0, 0.2);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
  font-size: 13px;
  line-height: 25px;
  color: #393838;
  position: relative;
}

table {
  margin: 10px 0 15px 0;
  border-collapse: collapse;
}

td,
th {
  border: 1px solid #ddd;
  padding: 3px 10px;
}

th {
  padding: 5px 10px;
}

a, a:link, a:visited {
  color: #34495e;
  text-decoration: none;
}

a:hover, a:focus {
  color: #59d69d;
  text-decoration: none;
}

a img {
  border: none;
}

p {
  padding-left: 10px;
  margin-bottom: 9px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #404040;
  line-height: 36px;
}

h1 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
  line-height: 50px;
}

h2 {
  font-size: 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}

h3 {
  clear: both;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 20px;
  border-left: 3px solid #59d69d;
  padding-left: 8px;
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 14px;
}

h6 {
  font-size: 13px;
}

hr {
  margin: 0 0 19px;
  border: 0;
  border-bottom: 1px solid #ccc;
}

blockquote {
  padding: 13px 13px 21px 15px;
  margin-bottom: 18px;
  font-family: georgia, serif;
  font-style: italic;
}

blockquote:before {
  font-size: 40px;
  margin-left: -10px;
  font-family: georgia, serif;
  color: #eee;
}

blockquote p {
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  margin-bottom: 0;
  font-style: italic;
}

code,
pre {
  font-family: Monaco, Andale Mono, Courier New, monospace;
}

code {
  background-color: #fee9cc;
  color: rgba(0, 0, 0, 0.75);
  padding: 1px 3px;
  font-size: 12px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

pre {
  display: block;
  padding: 14px;
  margin: 0 0 18px;
  line-height: 16px;
  font-size: 11px;
  border: 1px solid #d9d9d9;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f6f6f6;
}

pre code {
  background-color: #f6f6f6;
  color: #737373;
  font-size: 11px;
  padding: 0;
}

sup {
  font-size: 0.83em;
  vertical-align: super;
  line-height: 0;
}

* {
  -webkit-print-color-adjust: exact;
}

@media print {
  body,
  code,
  pre code,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black;
  }

  table,
  pre {
    page-break-inside: avoid;
  }
}
html,
body {
  height: 100%;
}

.table-of-contents {
  position: fixed;
  top: 61px;
  left: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  width: 260px;
}

.table-of-contents > ul > li > a {
  font-size: 20px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.table-of-contents ul {
  overflow: auto;
  margin: 0px;
  height: 100%;
  padding: 0px 0px;
  box-sizing: border-box;
  list-style-type: none;
}

.table-of-contents ul li {
  padding-left: 20px;
}

.table-of-contents a {
  padding: 2px 0px;
  display: block;
  text-decoration: none;
}

.content-right {
  max-width: 700px;
  margin-left: 290px;
  padding-left: 70px;
  flex-grow: 1;
}
.content-right h2:target {
  padding-top: 80px;
}

body > p {
  margin-left: 30px;
}

body > table {
  margin-left: 30px;
}

body > pre {
  margin-left: 30px;
}

.curProject {
  position: fixed;
  top: 20px;
  font-size: 25px;
  color: black;
  margin-left: -240px;
  width: 240px;
  padding: 5px;
  line-height: 25px;
  box-sizing: border-box;
}

.g-doc {
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
}

.curproject-name {
  font-size: 42px;
}

.m-header {
  background: #32363a;
  height: 56px;
  line-height: 56px;
  padding-left: 60px;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  right: 0;
}
.m-header .title {
  font-size: 22px;
  color: #fff;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  margin-left: 16px;
  padding: 0;
  line-height: 56px;
  border: none;
}
.m-header .nav {
  color: #fff;
  font-size: 16px;
  position: absolute;
  right: 32px;
  top: 0;
}
.m-header .nav a {
  color: #fff;
  margin-left: 16px;
  padding: 8px;
  transition: color .2s;
}
.m-header .nav a:hover {
  color: #59d69d;
}

.m-footer {
  border-top: 1px solid #ddd;
  padding-top: 16px;
  padding-bottom: 16px;
}

/*# sourceMappingURL=defaultTheme.css.map */
</style>
      </head>
      <body>
        <div class="m-header">
          <a href="#" style="display: inherit;"><svg class="svg" width="32px" height="32px" viewBox="0 0 64 64" version="1.1"><title>Icon</title><desc>Created with Sketch.</desc><defs><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1"><stop stop-color="#FFFFFF" offset="0%"></stop><stop stop-color="#F2F2F2" offset="100%"></stop></linearGradient><circle id="path-2" cx="31.9988602" cy="31.9988602" r="2.92886048"></circle><filter x="-85.4%" y="-68.3%" width="270.7%" height="270.7%" filterUnits="objectBoundingBox" id="filter-3"><feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.159703351 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter></defs><g id="首页" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="大屏幕"><g id="Icon"><circle id="Oval-1" fill="url(#linearGradient-1)" cx="32" cy="32" r="32"></circle><path d="M36.7078009,31.8054514 L36.7078009,51.7110548 C36.7078009,54.2844537 34.6258634,56.3695395 32.0579205,56.3695395 C29.4899777,56.3695395 27.4099998,54.0704461 27.4099998,51.7941246 L27.4099998,31.8061972 C27.4099998,29.528395 29.4909575,27.218453 32.0589004,27.230043 C34.6268432,27.241633 36.7078009,29.528395 36.7078009,31.8054514 Z" id="blue" fill="#2359F1" fill-rule="nonzero"></path><path d="M45.2586091,17.1026914 C45.2586091,17.1026914 45.5657231,34.0524383 45.2345291,37.01141 C44.9033351,39.9703817 43.1767091,41.6667796 40.6088126,41.6667796 C38.040916,41.6667796 35.9609757,39.3676862 35.9609757,37.0913646 L35.9609757,17.1034372 C35.9609757,14.825635 38.0418959,12.515693 40.6097924,12.527283 C43.177689,12.538873 45.2586091,14.825635 45.2586091,17.1026914 Z" id="green" fill="#57CF27" fill-rule="nonzero" transform="translate(40.674608, 27.097010) rotate(60.000000) translate(-40.674608, -27.097010) "></path><path d="M28.0410158,17.0465598 L28.0410158,36.9521632 C28.0410158,39.525562 25.9591158,41.6106479 23.3912193,41.6106479 C20.8233227,41.6106479 18.7433824,39.3115545 18.7433824,37.035233 L18.7433824,17.0473055 C18.7433824,14.7695034 20.8243026,12.4595614 23.3921991,12.4711513 C25.9600956,12.4827413 28.0410158,14.7695034 28.0410158,17.0465598 Z" id="red" fill="#FF561B" fill-rule="nonzero" transform="translate(23.392199, 27.040878) rotate(-60.000000) translate(-23.392199, -27.040878) "></path><g id="inner-round"><use fill="black" fill-opacity="1" filter="url(#filter-3)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-2"></use><use fill="#F7F7F7" fill-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-2"></use></g></g></g></g></svg></a>
          <a href="#"><h1 class="title">YAPI 接口文档</h1></a>
          <div class="nav">
            <a href="https://yapi.ymfe.org/">YApi</a>
          </div>
        </div>
        <div class="g-doc">
          <div class="table-of-contents"><ul><li><a href="#u8bc4u8bba">评论</a><ul><li><a href="#u5220u9664u5b50u8bc4u8bba0a3ca20id3du5220u9664u5b50u8bc4u8bba3e203ca3e">删除子评论
<a id=删除子评论> </a></a></li><li><a href="#u5220u9664u8bc4u8bba0a3ca20id3du5220u9664u8bc4u8bba3e203ca3e">删除评论
<a id=删除评论> </a></a></li><li><a href="#u65b0u589eu5b50u8bc4u8bba0a3ca20id3du65b0u589eu5b50u8bc4u8bba3e203ca3e">新增子评论
<a id=新增子评论> </a></a></li><li><a href="#u65b0u589eu8bc4u8bba0a3ca20id3du65b0u589eu8bc4u8bba3e203ca3e">新增评论
<a id=新增评论> </a></a></li><li><a href="#u83b7u53d6u5b50u8bc4u8bbau5217u88680a3ca20id3du83b7u53d6u5b50u8bc4u8bbau5217u88683e203ca3e">获取子评论列表
<a id=获取子评论列表> </a></a></li><li><a href="#u83b7u53d6u8bc4u8bbau5217u88680a3ca20id3du83b7u53d6u8bc4u8bbau5217u88683e203ca3e">获取评论列表
<a id=获取评论列表> </a></a></li></ul></li><li><a href="#u7528u6237">用户</a><ul><li><a href="#u4feeu6539u5bc6u78010a3ca20id3du4feeu6539u5bc6u78013e203ca3e">修改密码
<a id=修改密码> </a></a></li><li><a href="#u627eu56deu5bc6u78010a3ca20id3du627eu56deu5bc6u78013e203ca3e">找回密码
<a id=找回密码> </a></a></li><li><a href="#u7528u6237u6ce8u518c0a3ca20id3du7528u6237u6ce8u518c3e203ca3e">用户注册
<a id=用户注册> </a></a></li><li><a href="#u7528u6237u767bu5f550a3ca20id3du7528u6237u767bu5f553e203ca3e">用户登录
<a id=用户登录> </a></a></li><li><a href="#u83b7u53d6u7528u6237u4fe1u606f0a3ca20id3du83b7u53d6u7528u6237u4fe1u606f3e203ca3e">获取用户信息
<a id=获取用户信息> </a></a></li></ul></li><li><a href="#u89d2u8272u6587u7ae0u677fu5757">角色/文章板块</a><ul><li><a href="#u4feeu6539u89d2u8272u540du79f00a3ca20id3du4feeu6539u89d2u8272u540du79f03e203ca3e">修改角色名称
<a id=修改角色名称> </a></a></li><li><a href="#u5220u9664u89d2u82720a3ca20id3du5220u9664u89d2u82723e203ca3e">删除角色
<a id=删除角色> </a></a></li><li><a href="#u6dfbu52a0u89d2u8272u6dfbu52a0u6587u7ae0u677fu57570a3ca20id3du6dfbu52a0u89d2u8272u6dfbu52a0u6587u7ae0u677fu57573e203ca3e">添加角色/添加文章板块
<a id=添加角色/添加文章板块> </a></a></li><li><a href="#u89d2u8272u5217u88680a3ca20id3du89d2u8272u5217u88683e203ca3e">角色列表
<a id=角色列表> </a></a></li></ul></li><li><a href="#u6587u7ae0">文章</a><ul><li><a href="#u4feeu6539u6587u7ae00a3ca20id3du4feeu6539u6587u7ae03e203ca3e">修改文章
<a id=修改文章> </a></a></li><li><a href="#u5220u9664u6587u7ae00a3ca20id3du5220u9664u6587u7ae03e203ca3e">删除文章
<a id=删除文章> </a></a></li><li><a href="#u53d1u5e03u6587u7ae00a3ca20id3du53d1u5e03u6587u7ae03e203ca3e">发布文章
<a id=发布文章> </a></a></li><li><a href="#u53d6u6d88u6536u85cfu6587u7ae00a3ca20id3du53d6u6d88u6536u85cfu6587u7ae03e203ca3e">取消收藏文章
<a id=取消收藏文章> </a></a></li><li><a href="#u6536u85cfu6587u7ae00a3ca20id3du6536u85cfu6587u7ae03e203ca3e">收藏文章
<a id=收藏文章> </a></a></li><li><a href="#u6587u7ae0u5217u88680a3ca20id3du6587u7ae0u5217u88683e203ca3e">文章列表
<a id=文章列表> </a></a></li><li><a href="#u6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b490a3ca20id3du6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b493e203ca3e">文章加精，置顶，封禁等
<a id=文章加精，置顶，封禁等> </a></a></li><li><a href="#u6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b4920u53d6u6d880a3ca20id3du6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b4920u53d6u6d883e203ca3e">文章加精，置顶，封禁等 取消
<a id=文章加精，置顶，封禁等 取消> </a></a></li><li><a href="#u6587u7ae0u677fu5757u5217u88680a3ca20id3du6587u7ae0u677fu5757u5217u88683e203ca3e">文章板块列表
<a id=文章板块列表> </a></a></li><li><a href="#u6587u7ae0u8be6u60c50a3ca20id3du6587u7ae0u8be6u60c53e203ca3e">文章详情
<a id=文章详情> </a></a></li></ul></li></ul></div>
          <div id="right" class="content-right">
           <h1 class="curproject-name"> 留言板 </h1> 
 留言板 node api
<h1 id="u8bc4u8bba">评论</h1>
<p></p>
<h2 id="u5220u9664u5b50u8bc4u8bba0a3ca20id3du5220u9664u5b50u8bc4u8bba3e203ca3e">删除子评论
<a id=删除子评论> </a></h2>
<p></p>
<h3 id="">基本信息</h3>
<p><strong>Path：</strong> /api/v1/comment_children</p>
<p><strong>Method：</strong> DELETE</p>
<p><strong>接口描述：</strong></p>
<p>删除操作成功时会固定返回一个message字段</p><p>缺少版主验证权限</p>
<h3 id="-2">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>text</td>
<td>是</td>
<td>5a979343e0108f14fc3b2e75</td>
<td>评论ID</td>
</tr>
</tbody>
</table>
<h2 id="u5220u9664u8bc4u8bba0a3ca20id3du5220u9664u8bc4u8bba3e203ca3e">删除评论
<a id=删除评论> </a></h2>
<p></p>
<h3 id="-3">基本信息</h3>
<p><strong>Path：</strong> /api/v1/comment</p>
<p><strong>Method：</strong> DELETE</p>
<p><strong>接口描述：</strong></p>
<p>删除操作成功时会固定返回一个message字段</p><p>缺少版主验证权限</p>
<h3 id="-4">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>text</td>
<td>是</td>
<td>5a979343e0108f14fc3b2e75</td>
<td>评论ID</td>
</tr>
</tbody>
</table>
<h2 id="u65b0u589eu5b50u8bc4u8bba0a3ca20id3du65b0u589eu5b50u8bc4u8bba3e203ca3e">新增子评论
<a id=新增子评论> </a></h2>
<p></p>
<h3 id="-5">基本信息</h3>
<p><strong>Path：</strong> /api/v1/comment_children</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<p>上面 <b>被@的人&nbsp;</b>与&nbsp;<b>父级评论作者id&nbsp;</b>​只能传一个为了给对应的人发送消息，提示被评论了。</p>
<h3 id="-6">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>text</td>
<td>是</td>
<td>评论内容</td>
<td>评论内容</td>
</tr>
<tr>
<td>parent_id</td>
<td>text</td>
<td>是</td>
<td>父级评论id</td>
<td>父级评论id</td>
</tr>
<tr>
<td>parent_auth</td>
<td>text</td>
<td>否</td>
<td>父级评论作者id</td>
<td>父级评论作者id（与@的人只能传一个）传此值代表评论了父级评论</td>
</tr>
<tr>
<td>reply</td>
<td>text</td>
<td>否</td>
<td>被@的人</td>
<td>被@的人（与父级作者id的人只能传一个）传此值代表评论了父级评论下的子评论</td>
</tr>
</tbody>
</table>
<h3 id="-7">返回数据</h3>
<pre><code class="language-javascript">{
   &quot;message&quot;: &quot;评论成功&quot;
}
</code></pre>
<h2 id="u65b0u589eu8bc4u8bba0a3ca20id3du65b0u589eu8bc4u8bba3e203ca3e">新增评论
<a id=新增评论> </a></h2>
<p></p>
<h3 id="-8">基本信息</h3>
<p><strong>Path：</strong> /api/v1/comment</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<h3 id="-9">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
<tr>
<td>content</td>
<td>text</td>
<td>是</td>
<td>这是一条评论</td>
<td>评论内容</td>
</tr>
</tbody>
</table>
<h3 id="-10">返回数据</h3>
<pre><code class="language-javascript">{
   &quot;message&quot;: &quot;评论成功&quot;
}
</code></pre>
<h2 id="u83b7u53d6u5b50u8bc4u8bbau5217u88680a3ca20id3du83b7u53d6u5b50u8bc4u8bbau5217u88683e203ca3e">获取子评论列表
<a id=获取子评论列表> </a></h2>
<p></p>
<h3 id="-11">基本信息</h3>
<p><strong>Path：</strong> /api/v1/comment_children</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-12">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>parent_id</td>
<td>是</td>
<td>所属评论id</td>
<td>所属评论id</td>
</tr>
<tr>
<td>count</td>
<td>否</td>
<td>10</td>
<td>每页显示个数</td>
</tr>
<tr>
<td>page</td>
<td>否</td>
<td>0</td>
<td>显示第几页</td>
</tr>
</tbody>
</table>
<h3 id="-13">返回数据</h3>
<pre><code class="language-javascript">{
   &quot;data&quot;: [
      {
         &quot;upDate&quot;: &quot;2018-03-01T05:44:35.560Z&quot;,
         &quot;_id&quot;: &quot;5a979343e0108f14fc3b2e75&quot;,
         &quot;content&quot;: &quot;123123123&quot;
      },
      {
         &quot;upDate&quot;: &quot;2018-03-01T05:44:35.560Z&quot;,
         &quot;_id&quot;: &quot;5a97b45fb02a3af1233e9c6d&quot;,
         &quot;content&quot;: &quot;1231asdad23123&quot;
      },
      {
         &quot;upDate&quot;: &quot;2018-03-01T09:12:39.899Z&quot;,
         &quot;_id&quot;: &quot;5a97c4070f2ad22f7bc1d3f3&quot;,
         &quot;content&quot;: &quot;几了构切七选色根求老历它整处间。&quot;
      }
   ],
   &quot;count&quot;: 3,
   &quot;page&quot;: 1
}
</code></pre>
<h2 id="u83b7u53d6u8bc4u8bbau5217u88680a3ca20id3du83b7u53d6u8bc4u8bbau5217u88683e203ca3e">获取评论列表
<a id=获取评论列表> </a></h2>
<p></p>
<h3 id="-14">基本信息</h3>
<p><strong>Path：</strong> /api/v1/comment</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<h3 id="-15">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
<tr>
<td>count</td>
<td>否</td>
<td>10</td>
<td>每页显示个数</td>
</tr>
<tr>
<td>page</td>
<td>否</td>
<td>0</td>
<td>显示第几页</td>
</tr>
</tbody>
</table>
<h3 id="-16">返回数据</h3>
<pre><code class="language-javascript">{
   &quot;data&quot;: [
      {
         &quot;upDate&quot;: &quot;2018-03-01T05:44:35.560Z&quot;,
         &quot;_id&quot;: &quot;5a979343e0108f14fc3b2e75&quot;,
         &quot;content&quot;: &quot;123123123&quot;
      },
      {
         &quot;upDate&quot;: &quot;2018-03-01T05:44:35.560Z&quot;,
         &quot;_id&quot;: &quot;5a97b45fb02a3af1233e9c6d&quot;,
         &quot;content&quot;: &quot;1231asdad23123&quot;
      },
      {
         &quot;upDate&quot;: &quot;2018-03-01T09:12:39.899Z&quot;,
         &quot;_id&quot;: &quot;5a97c4070f2ad22f7bc1d3f3&quot;,
         &quot;content&quot;: &quot;几了构切七选色根求老历它整处间。&quot;
      }
   ],
   &quot;count&quot;: 3,
   &quot;page&quot;: 1
}
</code></pre>
<h1 id="u7528u6237">用户</h1>
<p></p>
<h2 id="u4feeu6539u5bc6u78010a3ca20id3du4feeu6539u5bc6u78013e203ca3e">修改密码
<a id=修改密码> </a></h2>
<p></p>
<h3 id="-17">基本信息</h3>
<p><strong>Path：</strong> /api/v1/password</p>
<p><strong>Method：</strong> PUT</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-18">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>password</td>
<td>text</td>
<td>是</td>
<td>222222</td>
<td>修改后密码</td>
</tr>
<tr>
<td>userid</td>
<td>text</td>
<td>否</td>
<td>修改者id</td>
<td>不传则修改自己的密码</td>
</tr>
</tbody>
</table>
<h2 id="u627eu56deu5bc6u78010a3ca20id3du627eu56deu5bc6u78013e203ca3e">找回密码
<a id=找回密码> </a></h2>
<p></p>
<h3 id="-19">基本信息</h3>
<p><strong>Path：</strong> /api/v1/password</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<p><b>只有管理员与超级管理员方可操作</b></p>
<h3 id="-20">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>userid</td>
<td>是</td>
<td>用户ID</td>
<td>只有管理员与超级管理员方可操作</td>
</tr>
</tbody>
</table>
<h2 id="u7528u6237u6ce8u518c0a3ca20id3du7528u6237u6ce8u518c3e203ca3e">用户注册
<a id=用户注册> </a></h2>
<p></p>
<h3 id="-21">基本信息</h3>
<p><strong>Path：</strong> /api/v1/register</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-22">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>username</td>
<td>text</td>
<td>是</td>
<td>lv</td>
<td>用户名</td>
</tr>
<tr>
<td>password</td>
<td>text</td>
<td>是</td>
<td>123456</td>
<td>密码</td>
</tr>
<tr>
<td>cname</td>
<td>text</td>
<td>否</td>
<td>用户昵称</td>
<td>用户昵称</td>
</tr>
</tbody>
</table>
<h2 id="u7528u6237u767bu5f550a3ca20id3du7528u6237u767bu5f553e203ca3e">用户登录
<a id=用户登录> </a></h2>
<p></p>
<h3 id="-23">基本信息</h3>
<p><strong>Path：</strong> /api/v1/login</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-24">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>username</td>
<td>text</td>
<td>是</td>
<td>lv</td>
<td>用户名</td>
</tr>
<tr>
<td>password</td>
<td>text</td>
<td>是</td>
<td>111111</td>
<td>密码</td>
</tr>
</tbody>
</table>
<h2 id="u83b7u53d6u7528u6237u4fe1u606f0a3ca20id3du83b7u53d6u7528u6237u4fe1u606f3e203ca3e">获取用户信息
<a id=获取用户信息> </a></h2>
<p></p>
<h3 id="-25">基本信息</h3>
<p><strong>Path：</strong> /api/v1/userInfo</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-26">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>userid</td>
<td>否</td>
<td>用户id</td>
<td>不传为获取当前登陆这信息</td>
</tr>
</tbody>
</table>
<h1 id="u89d2u8272u6587u7ae0u677fu5757">角色/文章板块</h1>
<p></p>
<h2 id="u4feeu6539u89d2u8272u540du79f00a3ca20id3du4feeu6539u89d2u8272u540du79f03e203ca3e">修改角色名称
<a id=修改角色名称> </a></h2>
<p></p>
<h3 id="-27">基本信息</h3>
<p><strong>Path：</strong> /api/v1/role</p>
<p><strong>Method：</strong> PUT</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-28">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>text</td>
<td>是</td>
<td>角色ID</td>
<td>角色ID</td>
</tr>
<tr>
<td>name</td>
<td>text</td>
<td>是</td>
<td>角色名称</td>
<td>角色名称</td>
</tr>
</tbody>
</table>
<h2 id="u5220u9664u89d2u82720a3ca20id3du5220u9664u89d2u82723e203ca3e">删除角色
<a id=删除角色> </a></h2>
<p></p>
<h3 id="-29">基本信息</h3>
<p><strong>Path：</strong> /api/v1/role</p>
<p><strong>Method：</strong> DELETE</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-30">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>text</td>
<td>是</td>
<td>角色ID</td>
<td></td>
</tr>
</tbody>
</table>
<h2 id="u6dfbu52a0u89d2u8272u6dfbu52a0u6587u7ae0u677fu57570a3ca20id3du6dfbu52a0u89d2u8272u6dfbu52a0u6587u7ae0u677fu57573e203ca3e">添加角色/添加文章板块
<a id=添加角色/添加文章板块> </a></h2>
<p></p>
<h3 id="-31">基本信息</h3>
<p><strong>Path：</strong> /api/v1/role</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<h3 id="-32">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>text</td>
<td>是</td>
<td>角色名称</td>
<td></td>
</tr>
<tr>
<td>article_type</td>
<td>text</td>
<td>否</td>
<td>true</td>
<td>是否为文章板块 true，不传为新建角色，传入为新建角色并设置为板块</td>
</tr>
</tbody>
</table>
<h2 id="u89d2u8272u5217u88680a3ca20id3du89d2u8272u5217u88683e203ca3e">角色列表
<a id=角色列表> </a></h2>
<p></p>
<h3 id="-33">基本信息</h3>
<p><strong>Path：</strong> /api/v1/role</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-34">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>count</td>
<td>否</td>
<td>10</td>
<td>每页显示数量</td>
</tr>
<tr>
<td>page</td>
<td>否</td>
<td>1</td>
<td>当前页面</td>
</tr>
</tbody>
</table>
<h1 id="u6587u7ae0">文章</h1>
<p></p>
<h2 id="u4feeu6539u6587u7ae00a3ca20id3du4feeu6539u6587u7ae03e203ca3e">修改文章
<a id=修改文章> </a></h2>
<p></p>
<h3 id="-35">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article</p>
<p><strong>Method：</strong> PUT</p>
<p><strong>接口描述：</strong></p>
<h3 id="-36">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
<tr>
<td>title</td>
<td>text</td>
<td>是</td>
<td>文章标题</td>
<td>文章标题</td>
</tr>
<tr>
<td>content</td>
<td>text</td>
<td>是</td>
<td>文章内容</td>
<td>文章内容</td>
</tr>
<tr>
<td>type</td>
<td>text</td>
<td>是</td>
<td>所属板块</td>
<td>所属板块</td>
</tr>
<tr>
<td>tags</td>
<td>text</td>
<td>否</td>
<td>HTML,CSS</td>
<td>文章标签 穿入数组或者“，”分隔</td>
</tr>
<tr>
<td>summary</td>
<td>text</td>
<td>否</td>
<td>文章简介</td>
<td>summary</td>
</tr>
</tbody>
</table>
<h2 id="u5220u9664u6587u7ae00a3ca20id3du5220u9664u6587u7ae03e203ca3e">删除文章
<a id=删除文章> </a></h2>
<p></p>
<h3 id="-37">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article</p>
<p><strong>Method：</strong> DELETE</p>
<p><strong>接口描述：</strong></p>
<h3 id="-38">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章ID</td>
<td></td>
</tr>
<tr>
<td>delete_reason</td>
<td>text</td>
<td>否</td>
<td>删除原因</td>
<td>非本人删除时需要传入删除原因</td>
</tr>
</tbody>
</table>
<h2 id="u53d1u5e03u6587u7ae00a3ca20id3du53d1u5e03u6587u7ae03e203ca3e">发布文章
<a id=发布文章> </a></h2>
<p></p>
<h3 id="-39">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<h3 id="-40">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>title</td>
<td>text</td>
<td>是</td>
<td>文章标题</td>
<td>文章标题</td>
</tr>
<tr>
<td>content</td>
<td>text</td>
<td>是</td>
<td>文章内容</td>
<td>文章内容</td>
</tr>
<tr>
<td>type</td>
<td>text</td>
<td>是</td>
<td>所属板块</td>
<td>所属板块</td>
</tr>
<tr>
<td>tags</td>
<td>text</td>
<td>否</td>
<td>HTML,CSS</td>
<td>文章标签</td>
</tr>
<tr>
<td>summary</td>
<td>text</td>
<td>否</td>
<td>文章简介</td>
<td>summary</td>
</tr>
</tbody>
</table>
<h2 id="u53d6u6d88u6536u85cfu6587u7ae00a3ca20id3du53d6u6d88u6536u85cfu6587u7ae03e203ca3e">取消收藏文章
<a id=取消收藏文章> </a></h2>
<p></p>
<h3 id="-41">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article_likes</p>
<p><strong>Method：</strong> DELETE</p>
<p><strong>接口描述：</strong></p>
<h3 id="-42">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
</tbody>
</table>
<h3 id="-43">返回数据</h3>
<pre><code class="language-javascript">
/**
 * 这是一个 response 事例
 */
{
  &quot;errcode&quot;: 0, //错误编码
  &quot;data&quot;: {
    &quot;id&quot;: &quot;uuid-xxx&quot;, //产品id
    &quot;name&quot;: &quot;iphone&quot; //产品名称
  }
}

</code></pre>
<h2 id="u6536u85cfu6587u7ae00a3ca20id3du6536u85cfu6587u7ae03e203ca3e">收藏文章
<a id=收藏文章> </a></h2>
<p></p>
<h3 id="-44">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article_likes</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<h3 id="-45">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
</tbody>
</table>
<h3 id="-46">返回数据</h3>
<pre><code class="language-javascript">
/**
 * 这是一个 response 事例
 */
{
  &quot;errcode&quot;: 0, //错误编码
  &quot;data&quot;: {
    &quot;id&quot;: &quot;uuid-xxx&quot;, //产品id
    &quot;name&quot;: &quot;iphone&quot; //产品名称
  }
}

</code></pre>
<h2 id="u6587u7ae0u5217u88680a3ca20id3du6587u7ae0u5217u88683e203ca3e">文章列表
<a id=文章列表> </a></h2>
<p></p>
<h3 id="-47">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-48">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>否</td>
<td>板块ID</td>
<td>板块ID，不传为获取所有文章</td>
</tr>
<tr>
<td>count</td>
<td>否</td>
<td>每页显示数量</td>
<td>每页显示数量</td>
</tr>
<tr>
<td>page</td>
<td>否</td>
<td>跳转页</td>
<td>跳转页</td>
</tr>
</tbody>
</table>
<h2 id="u6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b490a3ca20id3du6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b493e203ca3e">文章加精，置顶，封禁等
<a id=文章加精，置顶，封禁等> </a></h2>
<p></p>
<h3 id="-49">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article_operate</p>
<p><strong>Method：</strong> POST</p>
<p><strong>接口描述：</strong></p>
<h3 id="-50">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章id</td>
<td>文章id</td>
</tr>
<tr>
<td>type</td>
<td>text</td>
<td>是</td>
<td>操作类型</td>
<td>type=0 文章加精</td>
</tr>
</tbody>
</table>
<p>type=1 文章置顶<br>
type=2 文章封禁</p>
<p>版主无法置顶，只能加精与封禁 |</p>
<h2 id="u6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b4920u53d6u6d880a3ca20id3du6587u7ae0u52a0u7cbeuff0cu7f6eu9876uff0cu5c01u7981u7b4920u53d6u6d883e203ca3e">文章加精，置顶，封禁等 取消
<a id=文章加精，置顶，封禁等 取消> </a></h2>
<p></p>
<h3 id="-51">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article_operate</p>
<p><strong>Method：</strong> DELETE</p>
<p><strong>接口描述：</strong></p>
<h3 id="-52">请求参数</h3>
<p><strong>Headers</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数值</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>application/x-www-form-urlencoded</td>
<td>是</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>Body</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>text</td>
<td>是</td>
<td>文章id</td>
<td>文章id</td>
</tr>
<tr>
<td>type</td>
<td>text</td>
<td>是</td>
<td>操作类型</td>
<td>type=0 取消文章加精</td>
</tr>
</tbody>
</table>
<p>type=1 取消文章置顶<br>
type=2 取消文章封禁</p>
<p>版主无法置顶，只能加精与封禁 |</p>
<h2 id="u6587u7ae0u677fu5757u5217u88680a3ca20id3du6587u7ae0u677fu5757u5217u88683e203ca3e">文章板块列表
<a id=文章板块列表> </a></h2>
<p></p>
<h3 id="-53">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article_type</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong><br>
undefined</p>
<h3 id="-54">请求参数</h3>
<h3 id="-55">返回数据</h3>
<pre><code class="language-javascript">
/**
 * 这是一个 response 事例
 */
{
  &quot;errcode&quot;: 0, //错误编码
  &quot;data&quot;: {
    &quot;id&quot;: &quot;uuid-xxx&quot;, //产品id
    &quot;name&quot;: &quot;iphone&quot; //产品名称
  }
}

</code></pre>
<h2 id="u6587u7ae0u8be6u60c50a3ca20id3du6587u7ae0u8be6u60c53e203ca3e">文章详情
<a id=文章详情> </a></h2>
<p></p>
<h3 id="-56">基本信息</h3>
<p><strong>Path：</strong> /api/v1/article_content</p>
<p><strong>Method：</strong> GET</p>
<p><strong>接口描述：</strong></p>
<p><br></p>
<h3 id="-57">请求参数</h3>
<p><strong>Query</strong></p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>是否必须</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>article_id</td>
<td>是</td>
<td>文章ID</td>
<td>文章ID</td>
</tr>
</tbody>
</table>

            <footer class="m-footer">
              <p>Build by <a href="https://ymfe.org/">YMFE</a>.</p>
            </footer>
          </div>
        </div>
      </body>
      </html>
      